#ifndef MEMORYWIDGET_H
#define MEMORYWIDGET_H

#include <QWidget>
#include <QModelIndex>

class MemoryItemModel;

namespace Ui {
    class MemoryWidget;
}

class MemoryWidget : public QWidget
{
    Q_OBJECT

public:
    MemoryWidget(QWidget *parent = 0);
    ~MemoryWidget();
    //
    quint32 selectedPC() const;
    void goToAddress(quint32 address) const;

signals:
    void breakPointAdded(quint32);
    void breakPointRemoved(quint32);

private:
    Ui::MemoryWidget *ui;
    MemoryItemModel* model;

private slots:
    void on_addressGo_clicked();
    void on_pageGo_clicked();
};

#endif // MEMORYWIDGET_H
